<%@page import="dao.*"%>
<%@page import="domain.*"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/IncludeTop.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>Product.jsp</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="../css/jpetstore.css">
</head>

<body>

	<div id="BackLink">
		<a href="Category?catid=${product.category}">返回上一级 </a>
	</div>
	<center>
		<h2>${product.name}</h2>
		</center>
		<center>
			<table>
				<tr>
					<th>项目编号</th>
					<th>商品编号</th>
					<th>说 明</th>
					<th>价 格</th>
					<th></th>
				</tr>
				<c:forEach items="${list}" var="item">
					<tr>
						<td><a href="Item?itemid=${item.itemid}">${item.itemid}</a>
						</td>
						<td>${item.productid}</td>
						<td>${item.attr1}</td>
						<td>&yen;${item.listprice}</td>
						<td><a href="Cart?action=add&&itemid=${item.itemid}"  class="button">添加到购物车</a></td>
					</tr>
				</c:forEach>
			</table>
		</center>
</body>
</html>
<%@ include file="../common/IncludeBottom.jsp"%>
